﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class GameScene : MonoBehaviour
{
    public Rect btn1Pos;
    public GUIStyle btnStyle;
    private void OnGUI()
    {
        if(GUI.Button(btn1Pos, "离开游戏", btnStyle))
        {
            SceneManager.LoadScene("BeginPanel");
        }
    }

}
